package com.heima.model.admin.dtos;

import lombok.Data;
import org.apache.ibatis.type.Alias;

@Data
public class AuthDto {
    private Integer id;
    private String msg;
    private Integer page;
    private Integer size;
    private Integer status;

    //状态枚举类
    @Alias("AuthDtoStatus")
    public enum Status {
        CREATING((Integer) 0), AUDIT((Integer) 1), AUDIT_FAILED((Integer) 2),AUDIT_PASS((Integer) 9);
        Integer code;

        Status(Integer code) {
            this.code = code;
        }

        public Integer getCode() {
            return this.code;
        }
    }
}
